<?php
class View_Administration_Module_Edit extends View_Administration_Module
{
	public function buildContent( $moduleId )
	{
		$words	= $this->words['module']['editModule'];

		$tabs	= new UI_HTML_Tabs();

		$view	= new View_Administration_Module_Edit_Details;
		$tabs->addTab(
			$words['tabDetails'],
			$view->buildContent( $moduleId ),
			'details'
		);

		$view	= new View_Administration_Module_Edit_Files;
		$tabs->addTab(
			$words['tabFiles'],
			$view->buildContent( $moduleId ),
			'files'
		);

		$view	= new View_Administration_Module_Edit_Relations;
		$tabs->addTab(
			$words['tabRelations'],
			$view->buildContent( $moduleId ),
			'relations'
		);

		$view	= new View_Administration_Module_Edit_Database;
		$tabs->addTab(
			$words['tabDatabase'],
			$view->buildContent( $moduleId ),
			'database'
		);

	#	$view	= new View_Administration_Module_Edit_Pages;
		$tabs->addTab(
			$words['tabPages'],
			"",#$view->buildContent( $moduleId ),
			'pages'
		);

		$ui	= array(
			'words'		=> $words,
			'tabs'		=> $tabs->buildTabs( 'editModule', 'tabs-office2' ),
			'script'	=> $tabs->buildScript( '#editModule', array( 'class' => 'tabs-office2' ) ),
		);

		return $this->loadTemplate( 'administration.module.edit', $ui );
	}
}
?>